<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<ul th:each="user,userState:${patientinfolist}">
    <li th:text="${userState.index}"></li>
    <li th:text="${user.patientid}"></li>
    <li th:text="${user.patientgender}"></li>
    <li th:text="${user.patientname}"></li>
    <li th:text="${user.patientpass}"></li>
    <li th:text="${user.patientpho}"></li>
    <li th:text="${user.patientidcard}"></li>
    <li th:text="${#dates.format(user.patientcreatime,'yyyy-MM-dd')}"></li>
</ul>
</body>
</html>